package com.zhou.bjgl.bjgl.exception;

public class BwException extends RuntimeException{
    private final Integer code;
    private final String msg;

    public BwException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BwException(BwExceptionEnum exceptionEnum){
        this(exceptionEnum.getCode(),exceptionEnum.getMsg());
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
